{% extends "base.html" %}

{% block title %}Welcome{% endblock title %}
{% block navi %}[<a href="/upload/">upload</a>]{% endblock navi %}
{% block content %}
    <h2>Welcome</h2>
    <p class="info">
      RFDoc is a web application for storing and searching Robot Framework
      test library and resource file documentations.
    </p>

    <div class="hr"><hr /></div>
    {% include "search_form.html" %}
    <div class="hr"><hr /></div>

    <h2>Libraries</h2>
    {% if libs %}<ul class="libraries">
      {% for lib in libs %}<li><a href="/lib/{{ lib.name|urlencode }}">{{ lib.name }}</a></li>
      {% endfor %}</ul>{% else %}<p class="info">
      No libraries in the system. Why don't you <a href="/upload/">upload</a> one?
    </p>{%endif %}
{% endblock content %}
